<?php
/**
 * 应用入口文件
 * @copyright Copyright(c) 2020 WillPHP
 * @author DaSongzi <24203741@qq.com/113344.com>
 * @version 2.0
 * @since 2020-09-14
 */
header('Content-type: text/html; charset=utf-8');
version_compare(PHP_VERSION, '5.6', '<') and die('WillPHP requires PHP 5.6 or newer.');
define('WPHP_URI', strtr(realpath(__DIR__),'\\', '/'));
define('WPHP_PATH', WPHP_URI.'/willphp'); //框架路径
define('APP_NAME', 'myapp01'); //应用名称
//define('APP_MODE', 2); //1.单应用模式;2.多应用模式
//define('SESSION_ON', true); //自动开启session
define('APP_DEBUG', true); //本地开启调试

require WPHP_PATH.'/willphp.php';